package com.unknown.dapp.uni.swap.log.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unknown.dapp.uni.swap.log.dto.ContractConfigDTO;
import com.unknown.dapp.uni.swap.log.dto.ContractLogDTO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.cloud.mybatisplus.vo.JavaBeanResultMap;

/**
 * @author Administrator
 * @description 针对表【t_token_swap_record(NFT转账记录表，根据链的区块来扫描。)】的数据库操作Mapper
 * @createDate 2022-03-18 16:42:49
 * @Entity com.unknownman.block.mapper.TTokenSwapRecord
 */
public interface TTokenSwapRecordMapper extends BaseMapper<TTokenSwapRecord> {

    List<JavaBeanResultMap> countSwapResultByDay(Map<String, Object> params);

    List<ContractConfigDTO> selectContractConfig();

    List<ContractLogDTO> selectSwapTokenTransferLogs(@Param("limit") int limit, @Param("contractAddress") String contractAddress);
}




